<?php

namespace app\modules\merchant\services;

use app\common\services\BaseService;
use app\models\MerchantCredential;

class UserService extends BaseService{

    /**
     * 获取信息
     * @param $credential
     * @param $type
     * @return null|MerchantCredential
     */
    public static function findInfoByCredential($credential,$type)
    {
        return MerchantCredential::findOne(['username'=>$credential,'type'=>$type]);
    }
}